Skip to content

Add normalizer rules for $defs and const#290

Merged
bcherny merged 2 commits into
bcherny:masterfrom
awlayton:master
Jan 4, 2021
Merged

Add normalizer rules for $defs and const#290
bcherny merged 2 commits into
bcherny:masterfrom
awlayton:master

Conversation

@awlayton
Copy link
Copy Markdown
Contributor

@awlayton awlayton commented Apr 9, 2020

This adds support for newer keywords which have previous equivalents:

  • $defs is mapped to definitions
  • const is mapped to a singleton enum

@bcherny
Copy link
Copy Markdown
Owner

bcherny commented May 2, 2020

Thanks for the contribution! Mind adding some basic tests to make sure this doesn’t regress in the future?

Copy link
Copy Markdown
Owner

@bcherny bcherny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests

@awlayton awlayton requested a review from bcherny May 7, 2020 23:46
@MaikuMori
Copy link
Copy Markdown

It would be nice to have this merged since other tooling has already moved to https://json-schema.org/draft/2019-09/schema.

@edzis
Copy link
Copy Markdown

edzis commented Jul 29, 2020

@bcherny Are the tests fine?

Copy link
Copy Markdown
Owner

@bcherny bcherny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Thank you for the contribution!

Copy link
Copy Markdown
Owner

@bcherny bcherny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mind rebasing? Then I'll go ahead and merge.

Copy link
Copy Markdown
Owner

@bcherny bcherny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants